const express = require("express");
const router = express.Router();
const Mock = require("mockjs");
router.post("/bannerTable", (req, res) => {
  const data = Mock.mock({
    code: 200,
    data: {
      "dataSource|100": [
        {
          "key|+1": 1,
          imgUrl:
            "https://m15.360buyimg.com/mobilecms/jfs/t1/151773/25/29502/95042/63b341c7Fefc0c160/6a4be6551a062574.jpg!cr_1125x449_0_166!q70.jpg",
        },
      ],
      total: 100,
      currentPage: 1,
      pageSize: 10,
    },
  });
  res.json(data);
});
router.post("/bannerCreate", (req, res) => {
  const data = {
    code: 200,
    data: {
      message: "新增成功",
    },
  };
  res.json(data);
});


module.exports = router;
